package fileDemo;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Demo12 {
    public static void main(String[] args) {
        try (OutputStream outputStream = new FileOutputStream("D:/Project/java/java-biog/" +
                "Day20250312/IO测试文件目录/测试1.txt", true)) {
            byte[] b = new byte[]{99, 98, 97};
            outputStream.write(b);
            outputStream.flush();//刷新输出流，确保所有数据都被写出
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}

